package org.marsdonne.audits;

import lombok.Getter;
import lombok.Setter;

import java.io.Serializable;
import java.util.Date;

/**
 * 已捕获（例外）事件
 */
@Getter
@Setter
public class Caught implements Serializable {
    private String serviceId;//服务标识
    private String processId;//进程标识
    private Date dateCaught;
    private String type;//异常标识
    private String stackTrace;

    public Caught(String type) {
        this.type = type;
        this.dateCaught = new Date();
    }
}
